package com.itboy.mall.wms.waresku.bo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.*;


/**
 * 商品库存编辑对象 mall_ware_sku
 *
 * @author itboy
 * @date 2021-08-10
 */
@Data
@ApiModel("商品库存编辑对象")
public class MallWareSkuEditBo {


    /**
     * id
     */
    @ApiModelProperty("id")
	@JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * sku_id
     */
    @ApiModelProperty("sku_id")
    @NotNull(message = "sku_id不能为空")
	@JsonSerialize(using = ToStringSerializer.class)
    private Long skuId;

    /**
     * 仓库id
     */
    @ApiModelProperty("仓库id")
    @NotNull(message = "仓库id不能为空")
	@JsonSerialize(using = ToStringSerializer.class)
    private Long wareId;

    /**
     * 库存数
     */
    @ApiModelProperty("库存数")
    private Long stock;

    /**
     * sku_name
     */
    @ApiModelProperty("sku_name")
    @NotBlank(message = "sku_name不能为空")
    private String skuName;

    /**
     * 锁定库存
     */
    @ApiModelProperty("锁定库存")
    private Long stockLocked;
}
